package com.example.event_resource_java.authority.dao;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.event_resource_java.authority.domain.share.PageInfo;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName("jz_eventresource_error_book")
@Data
public class ErrorBookDO extends PageInfo implements Serializable {
    @TableId
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("class_id")
    private Long classId;

    @TableField("classname")
    private String classname;

    /** 题目id */
    @TableField("topic_id")
    private Long topicId;

    /** 题目类型(0单选 1多选 2判断) */
    @TableField("topic_type")
    private Integer topicType;

    /** 题目名称 */
    @TableField("topic_content")
    private String topicContent;

    /** 题目选项 */
    @TableField("user_option")
    private String userOption;

    /** 做题总次数 */
    @TableField("answer_count")
    private Integer answerCount;

    /** 做题错误次数 */
    @TableField("wrong_count")
    private Integer wrongCount;

    @TableField("create_date")
    private LocalDateTime createDate;

    /** 状态(0删除 1存在) */
    @TableField("status")
    private Integer status;

    /** 做题正确次数 */
    @TableField(exist = false)
    private Integer rightCount;

    /** 做题错误率 */
    @TableField(exist = false)
    private Double wrongRate;

    /** 做题正确率 */
    @TableField(exist = false)
    private Double rightRate;
}
